﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using AutoUpdate.util;

namespace AutoUpdate
{
    public partial class test : DevExpress.XtraEditors.XtraForm
    {
        public test()
        {
            InitializeComponent();
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
            CheckFrm ck = new CheckFrm("cmk", "smk");
            String version=ck.getLastestVersion();
            if (!version.Equals(""))
            {
                if (Util.showAskMessageBox("发现新版本："+version+"，是否立即更新？"))
                {
                    ck.ShowDialog();
                }
            }
        }
    }
}